package com.zg.message.service;

import com.zg.common.core.dao.message.entity.MsgInfo;
import com.zg.common.core.service.IPageBaseService;
import com.zg.message.domain.req.MsgInfoVerifyReq;
import com.zg.message.sys.MsgTypeEnum;
import com.zg.message.sys.SendStateEnum;

import java.util.List;

/**
 * <p>Description: </p>
 *
 * @author zhanfeng.liang
 * @since 2025/5/22 10:47
 */

public interface MsgInfoService extends IPageBaseService<MsgInfo> {

    /**
     * 根据状态查询
     * @param sendStateEnum
     * @return
     */
    List<MsgInfo> listBySendState(String sendStateEnum, String msgChannelEnum);


//    /**
//     * 根据状态查询
//     * @param sendStateEnum
//     * @return
//     */
//    List<MsgInfo> listSmsBySendState(SendStateEnum sendStateEnum);


    /**
     * 根据接收人查询
     * @param userId
     * @return
     */
    List<MsgInfo> listByReceiver(Long userId);

    /**
     * 取出信息里去除模板的内容
     * @param req
     * @return
     */
    Boolean  verifySmsCode(MsgInfoVerifyReq req);
}
